/**
 * 文 件 名:  NoticeService.java
 * 版      权:  财之道  Copyright ©2011-2015 All Rights Reserved
 * 描      述:  
 */
package com.czd.support.service;

import org.springframework.stereotype.Service;

import com.czd.base.model.Paginate;
import com.czd.base.service.BaseService;
import com.czd.support.model.Notice;

/**
 * 
 * @Author Jun.Yang
 * @Date 2015年2月8日 下午1:57:45
 * @Version 1.0
 */
@Service
public class NoticeService extends BaseService<Notice> {
	public boolean insert(Notice notice) {
		return this.insert(sqlId("insert"), notice);
	}
	
	public boolean update(Notice notice) {
		return this.update(sqlId("update"), notice);
	}
	
	public Notice findById(int id) {
		return this.selectOneById(sqlId("findById"), id);
	}
	
	public Paginate queryForPage(Notice notice) {
		return this.queryForPaginate(sqlId("queryForPage"), notice);
	}
	
	public boolean delete(int id) {
		return this.delete(sqlId("delete"), id);
	}
}
